/**
 * Created by zhuyufeng on 2016/1/9.
 */
var chart= new Ext.Panel({
	columnWidth:.8,
	region:'east',
	split:true,
	border:true,
	collapsible:true,
	width:400,
	minSize:400,
	maxSize:600,
	title:'图表显示',
	html:'<div id="container" style="min-width:800px;height:400px"></div>'
})
$(function () {
	$('#container').highcharts({
		chart: { type: 'line' },
		title: { text: '最近一周的送水量' },
		xAxis: {
			categories: ['1', '2', '3', '4', '5', '6', '7']
		},
		yAxis: {
			title: { text: '数量' }
		},
		tooltip: {
			enabled: false,
			formatter: function() {
				return '<b>'+ this.series.name +'</b><br/>'+this.x +': '+ this.y +'°C';
			}
		},
		plotOptions: {
			line: {
				dataLabels: { enabled: true },
				enableMouseTracking: false
			}
		},
		series: [{
			name: 'B222',
			data: [1, 2, 3, 4, 5, 6, 7] }]
	});
});